package 面向对象_中.c关键字super;

/**
 * @Projectname java_based
 * @Filename Person
 * @Author an
 * @Data 2022/6/30 8:54
 * @Description TODO
 */
public class Person {

    String name;
    int age;
    int id = 1003;	//身份证号

    public Person(){
        System.out.println("我无处不在");
    }

    public Person(String name){
        this.name = name;
    }

    public Person(String name,int age){
        this(name);
        this.age = age;
    }

    public void eat(){
        System.out.println("人，吃饭");
    }

    public void walk(){
        System.out.println("人，走路");
    }
}
